$(document).ready(function () {
    var conMenu = {
        over: showMenu,
        timeout: 500,
        out: hideMenu
    };
    function showMenu() {
        $(this).children('ul').toggle().slideDown(800);
    }
    function hideMenu() {
        $(this).children('ul').slideUp(300);
    }

    function hideAccordin(selector) {

        var c = $(selector);
        c.next('ul').slideUp(800);
    }
    function showAccordin(selector) {

        var c = $(selector);
        c.next('ul').slideDown(800);
    }

    $(".multi").hoverIntent(conMenu);

    $(".block h3").toggle(function () {
        hideAccordin(this);
    },
    function () {

        showAccordin(this);
    });
    if ($('#PanelRegister').length > 0) {
        $('.username').valid8();
    }

});
